cb3d48f50638f61d71afec96238b04d67aa6535d,modules/v1_8_R3/src/main/java/de/Keyle/MyPet/compat/v1_8_R3/entity/ai/movement/FollowOwner.java,FollowOwner,tick,#,102

Before Change


        this.petEntity.getControllerLook().a(owner, 10.0F, (float) this.petEntity.bQ());

        if (this.petEntity.canMove()) {
            if (--this.setPathTimer <= 0) {
                this.setPathTimer = 10;
                if (!this.nav.navigateTo(owner.getBukkitEntity())) {
                    if (owner.onGround && this.petEntity.h(owner) >= this.teleportDistance && controlPathfinderGoal.moveTo == null && !petEntity.hasTarget() && MyPetApi.getPlatformHelper().canSpawn(ownerLocation, this.petEntity)) {
                        this.petEntity.setPositionRotation(ownerLocation.getX(), ownerLocation.getY(), ownerLocation.getZ(), this.petEntity.yaw, this.petEntity.pitch);
                        this.nav.navigateTo(owner.getBukkitEntity());
                    }
                } else {
                    applyWalkSpeed();

After Change



        if (this.petEntity.canMove()) {
            if (owner.onGround) {
                if (this.petEntity.h(owner) >= this.teleportDistance) {
                    if (controlPathfinderGoal.moveTo == null) {
                        if (!petEntity.hasTarget()) {
                            if (MyPetApi.getPlatformHelper().canSpawn(ownerLocation, this.petEntity)) {
                                this.petEntity.setPositionRotation(ownerLocation.getX(), ownerLocation.getY(), ownerLocation.getZ(), this.petEntity.yaw, this.petEntity.pitch);
                                this.setPathTimer = 0;
                                return;
                            }
                        }
                    }
                }
            }

            if (--this.setPathTimer <= 0) {
                this.setPathTimer = 10;
                if (this.nav.navigateTo(owner.getBukkitEntity())) {
                    applyWalkSpeed();
                }
            }